﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;
namespace IHISCETeim.BLL
{
    public class USpecialCaseController
    {
        public static int Add(USpecialCaseInfo obj)
        {
            return USpecialCaseDAL.Add(obj);
        }
        public static bool Delete(int SCId)
        {
            return USpecialCaseDAL.Delete(SCId);
        }


        public static USpecialCaseInfo GetByID(int SCId)
        {
            return  CBO.FillObject<USpecialCaseInfo>( USpecialCaseDAL.GetByID(SCId));
        }
        public static DataTable GetPagination(string whereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return USpecialCaseDAL.GetPagination(whereSql, PageIndex,PageSize,Sort,ref TotalCount);
        }
        public static bool Update(USpecialCaseInfo obj)
        {
            return USpecialCaseDAL.Update(obj);
        }



        public static int USpecialCaseDetail_Add(USpecialCaseDetailInfo obj)
        {
            return USpecialCaseDAL.USpecialCaseDetail_Add(obj);
        }


        public static bool USpecialCaseDetail_Delete(int ID)
        {
            return USpecialCaseDAL.USpecialCaseDetail_Delete(ID);
        }

        public static USpecialCaseDetailInfo USpecialCaseDetail_GetById(int ID)
        {
            return CBO.FillObject <USpecialCaseDetailInfo > (USpecialCaseDAL.USpecialCaseDetail_GetById(ID));
        }

        public static DataTable USpecialCaseDetail_GetPagination(string whereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return USpecialCaseDAL.USpecialCaseDetail_GetPagination(whereSql, PageIndex, PageSize, Sort,ref TotalCount);
        }

        public static bool USpecialCaseDetail_Update(USpecialCaseDetailInfo obj)
        {
            return USpecialCaseDAL.USpecialCaseDetail_Update(obj);
        }

        public static DataTable USpecialCase_Report(int scid)
        {
            return USpecialCaseDAL.USpecialCase_Report(scid);

        }
    }
}
